import request from '@/utils/request'

// 查询优惠券发放记录列表
export function listCouponIssue(query) {
  return request({
    url: '/merchant/couponIssue/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券发放记录详细
export function getCouponIssue(id) {
  return request({
    url: '/merchant/couponIssue/' + id,
    method: 'get'
  })
}

// 新增优惠券发放记录
export function addCouponIssue(data) {
  return request({
    url: '/merchant/couponIssue',
    method: 'post',
    data: data
  })
}

// 修改优惠券发放记录
export function updateCouponIssue(data) {
  return request({
    url: '/merchant/couponIssue',
    method: 'put',
    data: data
  })
}

// 删除优惠券发放记录
export function delCouponIssue(id) {
  return request({
    url: '/merchant/couponIssue/' + id,
    method: 'delete'
  })
}
